<!--管理文章附件-->
<template>
  <ele-modal form
             :width="'70%'"
             :model-value="modelValue"
             title="管理文章附件"
             @update:modelValue="updateModelValue">
    <!-- 表格 -->
    <ele-pro-table
      ref="tableRef"
      row-key="id"
      :columns="columns"
      :datasource="datasource"
      :show-overflow-tooltip="true"
      highlight-current-row
      cache-key="cmsArticleTable">

    </ele-pro-table>
  </ele-modal>
</template>

<script>
import {ref, reactive, watch} from 'vue';
import {ElMessageBox} from 'element-plus/es';
import {EleMessage} from 'ele-admin-plus/es';

const emit = defineEmits(['done', 'update:modelValue']);
const props = defineProps({
  /** 弹窗是否打开 */
  modelValue: Boolean,
  /** 修改回显的数据 */
  data: Object,
  typeOptions: Array
});

/** loading */
const loading = ref(false);

/** 表格实例 */
const tableRef = ref(null);

const columns = ref([
  {
    type: 'selection',
    columnKey: 'selection',
    width: 50,
    align: 'center',
    fixed: 'left'
  },
  {
    prop: 'fileOriginName',
    label: '文件名称',
    align: 'center',
    minWidth: 110
  },
  {
    prop: 'fileSuffix',
    label: '文件类型',
    align: 'center',
    minWidth: 110
  },
  {
    prop: 'fileSizeInfo',
    label: '文件大小',
    align: 'center',
    minWidth: 110
  },
  {
    prop: 'fileObjectName',
    label: '存储文件名称',
    align: 'center',
    minWidth: 110
  },
  {
    prop: 'filePath',
    label: '存储路径',
    align: 'center',
    minWidth: 110
  },
  {
    prop: 'createBy',
    label: '创建者',
    align: 'center'
  },
  {
    prop: 'createTime',
    label: '创建时间',
    align: 'center'
  }
]);

/** 表格选中数据 */
const selections = ref([]);


</script>

